package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.ShippingMethodDao;
import com.ericom.model.ShippingMethod;
@Repository("shippingMethodDao")
public class ShippingMethodDaoHibernate extends
		GenericDaoHibernate<ShippingMethod, Long> implements ShippingMethodDao {
	public ShippingMethodDaoHibernate(){
		super(ShippingMethod.class);
	}

	public List<ShippingMethod> findByName(String name) {
		return this.getHibernateTemplate().find(
				"from ShippingMethod where name=?", name);
	}

}
